/**
 * @(#)AdministradorConfiguracionProperties.java 1/04/2010
 *
 * Copyright (c) 2005-2010 PsiqueWare S.A. de C.V. All Rights Reserved.
 * This software is the proprietary information PsiqueWare S.A. de C.V.
 * Use is subject to license terms.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
 * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
 * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
 * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 *
 *
 * <br/>Usuario : AngelElectrico
 * <br/>Creaci&oacute;n: 1/04/2010 - 04:02:30 PM
 * <br/>
 * <br/>
 * <br/><t5>Cambios :</t5>
 * <br/><b>Fecha | Autor  |  Cambios</b>
 * <ul>
 * <li>1/04/2010 | <a href = "mailto:AngelElectrico@PsiqueWare.com">&Aacute;ngel El&eacute;ctrico</a> | Creaci&oacute;n del Objeto.</li>
 *
 * </ul>
 */

package com.psiqueware.alheli.configuracion.properties;

import java.io.File;
import java.util.Collections;
import java.util.Enumeration;
import java.util.Properties;
import java.util.Set;
import java.util.TreeSet;

/**
 * {@link AdministradorConfiguracion} basado en un archivo properties.
 * <br/>Paquete Original: com.psiqueware.alheli.configuracion.properties
 * <br/>Nombre  Original: AdministradorConfiguracionProperties
 * <br/>Oprima para ver : <a href="AdministradorConfiguracionProperties.java.html"><i>C&oacute;digo Fuente</i> </a>
 *
 * @author <a href="mailto:AngelElectrico@PsiqueWare.com">AngelElectrico</a>
 * @version Revision: 1.1 1/04/2010 04:02:30 PM
 */
public final class AdministradorConfiguracionPropertiesOrdenadas extends AdministradorConfiguracionProperties
{

    final Properties m_properties = new Properties()
    {

        @Override
        public Set<Object> keySet()
        {
            return new TreeSet<Object>(super.keySet());
        }

        /**
         * Returns an enumeration of all the keys in this property list,
         * including distinct keys in the default property list if a key
         * of the same name has not already been found from the main
         * properties list.
         *
         * @return an enumeration of all the keys in this property list, including
         *         the keys in the default property list.
         * @see java.util.Enumeration
         * @see java.util.Properties#defaults
         */
        @Override
        public Enumeration<?> propertyNames()
        {
            return Collections.enumeration(new TreeSet<Object>(super.keySet()));
        }


    };

    /**
     * Constructor de AdministradorConfiguracionPropertiesOrdenadas.
     */
    public AdministradorConfiguracionPropertiesOrdenadas(final File archivoProperties)
    {
        super(archivoProperties);
    }
}